package com.sayimo.maker.mall.orders.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.sayimo.framework.database.mybatis.AbstractMybatisBaseDao;
import com.sayimo.framework.exception.DaoException;
import com.sayimo.maker.mall.orders.dao.OrdersTshInfoInterfaceDao;
import com.sayimo.maker.mall.orders.vo.OrdersTshInfo;



/**
 * 
 * @Project: schoolmallapi1.1
 * @ClassName: OrdersTshInfoInterfaceImplDao
 * @Description: 尚一和特奢汇订单表
 * @Author:	田超
 * @Date:	日期：2016年6月15日  时间：上午10:07:29
 * @Version 1.0.0
 */

@Repository(value = "ordersTshInfoInterfaceDao")
public class OrdersTshInfoInterfaceImplDao extends AbstractMybatisBaseDao<OrdersTshInfo> implements OrdersTshInfoInterfaceDao{

	@Override
	public void insertOrdersTsh(OrdersTshInfo ordersTshInfo) throws DaoException {
		mybatisInterfaceBaseDao.insert("com.sayimo.maker.mall.orders.dao.OrdersTshInfoInterfaceDao.insertOrdersTsh",ordersTshInfo);
	}

	@Override
	public List<OrdersTshInfo> queryTshByOrderId(Integer orderId) throws DaoException {
		return mybatisInterfaceBaseDao.query("com.sayimo.maker.mall.orders.dao.OrdersTshInfoInterfaceDao.queryTshByOrderId", orderId);
	}

	@Override
	public Integer updateOrderStatusByTsh(Map<String, Object> paramMap) throws DaoException {
		return mybatisInterfaceBaseDao.update("com.sayimo.maker.mall.orders.dao.OrdersTshInfoInterfaceDao.updateOrderStatusByTsh",paramMap);
	}

	@Override
	public OrdersTshInfo getGoddsIdByOrderId(Map<String, Object> paramMap) throws DaoException {
		return mybatisInterfaceBaseDao.get("com.sayimo.maker.mall.orders.dao.OrdersTshInfoInterfaceDao.getGoddsIdByOrderId",paramMap);
	}

}
